package org.darkforest.dao.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Goods;
import org.darkforest.model.HealthOrgAppointment;
import org.darkforest.model.HealthOrgCheckedAppointment;

@DBMapper
public interface HealthOrgAppointmentMapper {
    int deleteByPrimaryKey(Integer oaId);

    int insert(HealthOrgAppointment record);

    int insertSelective(HealthOrgAppointment record);

    HealthOrgAppointment selectByPrimaryKey(Integer oaId);

    int updateByPrimaryKeySelective(HealthOrgAppointment record);

    int updateByPrimaryKey(HealthOrgAppointment record);

    List<HealthOrgAppointment> selectListByCondition(HealthOrgAppointment record);

    int batchAddAppointment(List<HealthOrgAppointment> record);

    int updateAppointmentInfo(HealthOrgAppointment record);

    List<HealthOrgCheckedAppointment> selectEveryDayInfoByMonth(Map<String, String> searchParam);

    int updateAppointmenterNumByOrgIdAndAppointmentDate(@Param("orgId") Integer orgId, @Param("appointmentDate") Integer appointmentDate, @Param("appointmenteNnum") Integer appointmenteNnum);
}